package com.example.questionnaire.mbg.entity.Enum;

public enum QuestionTypeEnum {
    RADIO, CHECKBOX, INPUT, RATING,LOCATION;

    public static QuestionTypeEnum fromString(String type) {
        return QuestionTypeEnum.valueOf(type.toUpperCase());
    }

    @Override
    public String toString() {
        return name().toLowerCase();
    }
}
